Alexander Larsson [Wed, 26 Aug 2009 12:53:27 +0000 (14:53 +0200)]
Don't unnecessarily set the event mask as that can cause X errors
For instance, two clients selecting for button events can cause BadAccess.
This fixes bug 592624, where a gdk_window_reparent caused us to re-set
the event mask, breaking the workaround for the mozilla BadAccess bug.
Alexander Larsson [Wed, 26 Aug 2009 08:34:15 +0000 (10:34 +0200)]
Propagate the "send_event" flag for emulated events
This fixes bug 593011, where we were getting a bogus time on sent events
and the gnome-panel specifically looked for this and worked around it.
Mikel González [Wed, 26 Aug 2009 08:14:22 +0000 (10:14 +0200)]
Updated Asturian translation
Inaki Larranaga Murgoitio [Wed, 26 Aug 2009 08:15:35 +0000 (10:15 +0200)]
Updated Basque language
Rajesh Ranjan [Wed, 26 Aug 2009 06:22:58 +0000 (11:52 +0530)]
hindi updated by Rajesh Ranjan
Rajesh Ranjan [Wed, 26 Aug 2009 06:21:44 +0000 (11:51 +0530)]
hindi updated by Rajesh Ranjan
Alexander Larsson [Tue, 25 Aug 2009 13:43:52 +0000 (15:43 +0200)]
Fix cairo clipping to client side windows
When updating the clip region on cairo context (due to window changes or
paints of different sizes) we reset the old clip region, but this was
erronously done inside a cairo_save/cairo_restore pair, which made the
reset not take effect.
This fixes bug #592263.
Christian Dywan [Tue, 25 Aug 2009 09:58:30 +0000 (11:58 +0200)]
Bug 592901 - Crash in JPEG pixbuf loader instead of error
Initialize the error structure early enough to ensure that it
propagates properly in the case of an error. Patch by Nokia.
ifelix [Tue, 25 Aug 2009 08:45:42 +0000 (14:15 +0530)]
Updated Tamil Translations
ifelix [Tue, 25 Aug 2009 08:44:45 +0000 (14:14 +0530)]
Updated Tamil Translations
Alexander Larsson [Tue, 25 Aug 2009 08:34:10 +0000 (10:34 +0200)]
Clean up gdk_draw_drawable() composite handling
Instead of doing some magic in gdk_draw_drawable() to avoid double
offsetting when calling gdk_draw_drawable on the impl we call
the vfunc directly on the impl. Thus removing the weird magic from
gdk_draw_drawable().
I tested this with the testgtk test "text", where if the original magic
code is disabled typing a newline in the middle of a text line causes
the double offset issue to appear.
Alexander Larsson [Tue, 25 Aug 2009 08:16:39 +0000 (10:16 +0200)]
Fix clipping issue with clip masks
When the clip mask is completely inside the drawable clip region we
don't change the clip at all. However, we did set region_tag_applied,
so when the drawable clip was removed we removed the original clip mask.
This is no good, so we fix that by returning early in this case.
Fixes issue reported in bug #592752.
Alexander Larsson [Tue, 25 Aug 2009 06:57:10 +0000 (08:57 +0200)]
Fix clipping of drawn pixbufs in the no-render case
The fallback pixbuf rendering case ends up calling gdk_draw_image() on the
destination drawable wrapper, which resets the previously set clip region.
So, we need to manually get the impl and draw on that directly.
This fixes bug 592752 where we don't clip pixbuf rendering on non-render
Xservers.
Matthias Clasen [Mon, 24 Aug 2009 23:45:14 +0000 (19:45 -0400)]
Bump version
Matthias Clasen [Mon, 24 Aug 2009 22:54:51 +0000 (18:54 -0400)]
2.17.9
Matthias Clasen [Mon, 24 Aug 2009 22:17:54 +0000 (18:17 -0400)]
Documentation fixes
Matthias Clasen [Mon, 24 Aug 2009 20:31:46 +0000 (16:31 -0400)]
Updates
Matthias Clasen [Mon, 24 Aug 2009 14:37:46 +0000 (10:37 -0400)]
Document GDK_NATIVE_WINDOWS
Add a section in the release notes about it and list it
in the docs with all the other environment variables.
Gil Forcada [Mon, 24 Aug 2009 18:16:29 +0000 (20:16 +0200)]
Minor fix to Catalan translation
Carles Ferrando [Mon, 24 Aug 2009 18:16:02 +0000 (20:16 +0200)]
Updated Catalan (Valencian) translation
Gil Forcada [Mon, 24 Aug 2009 18:09:26 +0000 (20:09 +0200)]
Minor fix to Catalan translation
Carles Ferrando [Mon, 24 Aug 2009 18:06:44 +0000 (20:06 +0200)]
Updated Catalan (Valencian) translation
Christian Persch [Thu, 20 Aug 2009 13:32:22 +0000 (15:32 +0200)]
Preserve errno, and always use g_strerror()
Bug #592461.
Alexander Larsson [Mon, 24 Aug 2009 13:18:10 +0000 (15:18 +0200)]
Add support for enabling only native windows
Some applications make weird assumtions on Gtk+ that do not work anymore
with the new client-side windows support. For instance SWT/Eclipse reorders
the stacking order of the X windows directly without telling gdk this,
which breaks gdk drawing as gdk now relies on knowing the stacking order
for window clipping.
This introduces a GDK_NATIVE_WINDOWS environment variable, which if set
causes Gtk+ to always use native windows. Its more compatible with
pre-csw Gtk+ behaviour if you do weird X-specific hacks, although it does
limit the size of GdkWindows to 65535x65535.
Denis Arnaud [Mon, 24 Aug 2009 10:42:14 +0000 (12:42 +0200)]
Updated breton translation
Sweta Kothari [Mon, 24 Aug 2009 09:25:18 +0000 (14:55 +0530)]
Updated Gujarati Translations
Tor Lillqvist [Mon, 24 Aug 2009 07:08:53 +0000 (10:08 +0300)]
Update README.win32
Duarte Loreto [Sun, 23 Aug 2009 22:36:39 +0000 (23:36 +0100)]
Updated Portuguese translation
Duarte Loreto [Sun, 23 Aug 2009 22:21:56 +0000 (23:21 +0100)]
Updated Portuguese translation
Jamil Ahmed [Sun, 23 Aug 2009 20:40:03 +0000 (03:40 +0700)]
Updated Bengali translation
Kristian Rietveld [Sun, 23 Aug 2009 20:01:39 +0000 (22:01 +0200)]
Remove broken logic in backwards walks in validate_visible_area()
In validate_visible_area() it was assumed that gtk_tree_path_prev()
would always return the correct path of the preceding node. This is
obviously not true. The if-clause has been removed so that we now
always use _gtk_tree_view_find_path() to get the path from the tree,
node.
Kristian Rietveld [Sun, 23 Aug 2009 19:44:58 +0000 (21:44 +0200)]
Add a scrolling test case involving creating new rows in tree stores
Based on a bug report from Miroslav Rajcic, details are in the tree view
scrolling suite source code.
Kristian Rietveld [Sun, 23 Aug 2009 19:13:38 +0000 (21:13 +0200)]
Rework naming of tests to make better use of path matching feature
Kristian Rietveld [Sun, 23 Aug 2009 19:06:29 +0000 (21:06 +0200)]
Change prefix of tree view scrolling tests into TreeView
Kristian Rietveld [Sun, 23 Aug 2009 13:29:11 +0000 (15:29 +0200)]
Clean up code in gtk_tree_store_set_n_columns()
Clean up GtkTreeStore likewise as Benjamin Otte has done for
GtkListStore in commit
3c97f037.
Kristian Rietveld [Sun, 23 Aug 2009 10:21:53 +0000 (12:21 +0200)]
Bug 528283 - Problems when using PageUp & PageDown to navigate...
Patch from Jonathan Matthew to make focus grabbing of page up/down,
home/end and left/right movements consistent with up/down.
Daniel Nylander [Sun, 23 Aug 2009 18:08:35 +0000 (20:08 +0200)]
Updated Swedish translation
Ivar Smolin [Sun, 23 Aug 2009 16:41:38 +0000 (19:41 +0300)]
Updating Estonian translation
Kristian Rietveld [Sun, 23 Aug 2009 06:59:34 +0000 (08:59 +0200)]
Bug 526149 - GtkCellRendererAccel editing conflicts with mnemonics
GtkCellRendererAccel also needs to acquire the GTK+ grab in addition to
a GDK keyboard grab. With the GDK keyboard grab, KeyPress and
KeyRelease events are delivered as usual, although we only want to
receive them for our grab widget.
Kristian Rietveld [Sat, 22 Aug 2009 21:21:44 +0000 (23:21 +0200)]
Bug 478519 - GtkTooltip segfaults on NULL gdk-display-current-tooltip
Make the tooltip code a bit more robust for a case that only occurs when
GTK+ is used from a language binding. It looks like this case appears
because the memory management / ref counting is handled differently in
some of the language bindings. Instead of asserting, we will fail
silently. Also fix a think-o in gtk_tooltip_start_delay(). Patch from
O. Andrieu.
Changwoo Ryu [Sat, 22 Aug 2009 16:32:31 +0000 (01:32 +0900)]
Update Korean translation
Theppitak Karoonboonyanan [Sat, 22 Aug 2009 16:07:00 +0000 (23:07 +0700)]
Updated Thai translation.
Alexander Shopov [Sat, 22 Aug 2009 16:04:13 +0000 (19:04 +0300)]
Updated Bulgarian translation
Jorge González [Sat, 22 Aug 2009 10:11:53 +0000 (12:11 +0200)]
Updated Spanish translation
A S Alam [Sat, 22 Aug 2009 02:04:04 +0000 (07:34 +0530)]
Updating Punjabi Translation Update
A S Alam [Sat, 22 Aug 2009 01:51:13 +0000 (07:21 +0530)]
Updating Punjabi Translation Update
A S Alam [Sat, 22 Aug 2009 01:49:38 +0000 (07:19 +0530)]
Added Punjabi (Gurmukhi) Translaiton) by A S Alam
Kjartan Maraas [Fri, 21 Aug 2009 11:41:16 +0000 (13:41 +0200)]
Added Norwegian bokmål translation.
Li Yuan [Fri, 21 Aug 2009 07:29:51 +0000 (15:29 +0800)]
Return state_set directly if there is no parent.
Bug #592403. Return state_set directly if there is no parent. Fix crash.
Matthias Clasen [Thu, 20 Aug 2009 22:06:35 +0000 (18:06 -0400)]
Silence the conversion from xatom to atom too
Shixin Zeng [Thu, 20 Aug 2009 20:57:41 +0000 (23:57 +0300)]
Deprecate also GdkFontPrivateWin32
Shixin Zeng [Thu, 20 Aug 2009 20:56:52 +0000 (23:56 +0300)]
Return value from non-void function
Shixin Zeng [Thu, 20 Aug 2009 20:55:51 +0000 (23:55 +0300)]
Use g_object_ref/unref instead of deprecated specializations
Shixin Zeng [Thu, 20 Aug 2009 20:53:57 +0000 (23:53 +0300)]
Don't use stream before it is created
Shixin Zeng [Thu, 20 Aug 2009 20:51:38 +0000 (23:51 +0300)]
Put variable definitions at start of block
Alexander Larsson [Thu, 20 Aug 2009 15:09:08 +0000 (17:09 +0200)]
More reentrancy protection for process_updates
Protect against exposes destroying windows in some more places.
Hopefully this fixes bug 589367.
Antón Méixome [Wed, 19 Aug 2009 14:26:24 +0000 (16:26 +0200)]
Updated Galician Translation
Seán de Búrca [Wed, 19 Aug 2009 12:37:36 +0000 (06:37 -0600)]
Updated Irish translation
Antón Méixome [Wed, 19 Aug 2009 11:39:19 +0000 (13:39 +0200)]
Updated Galician Translation
Leonardo Ferreira Fontenelle [Wed, 19 Aug 2009 02:15:12 +0000 (22:15 -0400)]
Updated Brazilian Portuguese translation.
Andre Klapper [Tue, 18 Aug 2009 17:24:54 +0000 (19:24 +0200)]
Add missing file.
Andre Klapper [Tue, 18 Aug 2009 17:22:38 +0000 (19:22 +0200)]
Add missing file.
Marek Kasik [Tue, 18 Aug 2009 14:05:31 +0000 (16:05 +0200)]
Use gtk-save icon for GtkPrintBackendFile
Use gtk-save icon instead of gtk-floppy for GtkPrintBackendFile.
Marek Kasik [Tue, 18 Aug 2009 11:22:23 +0000 (13:22 +0200)]
Correctly select default printer when there is more than one (CUPS)
Select a local default printer if there is one instead of a remote
default printer (specified by the "printer-type" CUPS attribute)
(#591549).
Michael Natterer [Tue, 18 Aug 2009 10:10:03 +0000 (12:10 +0200)]
Shut up warning about calling gtk_object_get_type() having no effect
Matthias Clasen [Tue, 18 Aug 2009 03:53:36 +0000 (23:53 -0400)]
Bump version
Matthias Clasen [Tue, 18 Aug 2009 03:51:50 +0000 (23:51 -0400)]
2.17.8
Matthias Clasen [Tue, 18 Aug 2009 02:19:24 +0000 (22:19 -0400)]
Updates
Javier Jardón [Mon, 17 Aug 2009 15:55:09 +0000 (17:55 +0200)]
Support silent build rules with automake 1.11 (GnomeBug:591998)
Support silent build rules, requires at least automake-1.11.
Enable by either passing --enable-silent-rules to configure or
passing V=0 to make.
Matthias Clasen [Mon, 17 Aug 2009 17:38:06 +0000 (13:38 -0400)]
Handle accelerators involving virtual modifiers better
The previous code would trigger on an unmodified 'S' key for a
'Super+S' accel. The current code avoids that at the cost of breaking
combinations like 'Mod4+Super+S' which are too exotic to worry about...
Bug 591526
Matthias Clasen [Mon, 17 Aug 2009 13:16:12 +0000 (09:16 -0400)]
Tiny docs improvement
Mention that gdk_xid_table_lookup may return NULL. Bug 591432.
Paolo Borelli [Mon, 17 Aug 2009 15:04:30 +0000 (17:04 +0200)]
Bug 592003 - Shift+click should always modify selection
Shift-click inside an existing selection reduces the selection to the
range from the insert mark to the clicked point instead of removing the
selection. This makes GtkTextView more consistent with GtkEntry.
Alexander Larsson [Mon, 17 Aug 2009 14:59:47 +0000 (16:59 +0200)]
Don't crash on NULL parent
The parent window can be NULL, check for that before dereferencing.
Seán de Búrca [Mon, 17 Aug 2009 09:17:30 +0000 (03:17 -0600)]
Updated Irish translation
Alexander Larsson [Sun, 16 Aug 2009 20:32:58 +0000 (22:32 +0200)]
Remove unused variable
Alexander Larsson [Sun, 16 Aug 2009 20:24:00 +0000 (22:24 +0200)]
Fix gdk_window_get_geometry for native children with non-native parent
gdk_window_get_geometry calls the native function for all non-native
windows. This returns coords relative to the native parent. We need
to convert this to be relative to the client side parent.
This fixes DnD coordinates in firefox (bug 588437).
Paolo Borelli [Fri, 14 Aug 2009 09:33:47 +0000 (11:33 +0200)]
Fix memory leaks when using add_objects
Paolo Borelli [Thu, 13 Aug 2009 22:09:46 +0000 (00:09 +0200)]
Fix memory leaks in unit tests
Paolo Borelli [Thu, 13 Aug 2009 22:08:09 +0000 (00:08 +0200)]
Fix duplicated id detection in gtkbuilder
Fix memory handling of duplicated id hashtable and add unit test
Alexander Larsson [Fri, 14 Aug 2009 10:09:02 +0000 (12:09 +0200)]
Always queue antiexposes after flushing outstanding moves
If antiexposures are queued and then we do the outstanding moves
we will queue translations that will affect incomming exposes
wrongly wrt the antiexposure. So, make sure we process the outstanding
moves before doing the antiexposure.
Additionally this commit adds a bunch of comments about how the
expose handling works and fixes a small bug that made us always
flush outstanding moves a little to early than necessary.
Alexander Larsson [Fri, 14 Aug 2009 09:20:12 +0000 (11:20 +0200)]
Fix type mismatch warnings
Cast g_list_foreach args to GFunc.
Tor Lillqvist [Thu, 13 Aug 2009 19:49:35 +0000 (22:49 +0300)]
Initialize missing methods on Windows
Set the input_window_destroy and input_window_crossing methods of the
GdkWindowImplIface on Windows. Add implementation of
_gdk_input_crossing_event that is mostly dummy, though.
Cody Russell [Thu, 13 Aug 2009 16:22:57 +0000 (11:22 -0500)]
Add gtk_widget_set_allocation to gtkwidget.h and gtk.symbols
Cody Russell [Thu, 13 Aug 2009 16:21:15 +0000 (11:21 -0500)]
Make the allocation parameter const
Cody Russell [Thu, 13 Aug 2009 14:57:25 +0000 (09:57 -0500)]
Add widget->allocation setter method
Add gtk_widget_set_allocation() to be used by size_allocate() methods,
since widget->allocation is now sealed. Bug #585211
Alexander Larsson [Thu, 13 Aug 2009 15:00:00 +0000 (17:00 +0200)]
Make _gdk_window_process_updates_recurse reentrancy safe
Apps may change the window hierarchy while recursing over it by
destroying windows from the expose event handler. We need to copy
the children list and ref all the children while recursing.
This fixes some crashers in gedit (bug #589367, bug #591434)
Alexander Larsson [Thu, 13 Aug 2009 14:48:07 +0000 (16:48 +0200)]
Fix leaks of clip region and outstanding moves
We're never freeing these, do so when destroying.
Fixes bug 589877
Matthias Clasen [Thu, 13 Aug 2009 13:45:04 +0000 (09:45 -0400)]
Don't return uninitialized pointers
This was giving me segfaults somewhere else.
Alexander Larsson [Thu, 13 Aug 2009 12:25:35 +0000 (14:25 +0200)]
Ensure that queue_translation is paired with the right X operation
The X11 queue_translation operation uses NextRequest to get the serial
of the XCopyArea operation where the translation should end. However,
if the gc passed to gdk_draw_drawable has a non-flushed clip region
(which it commonly has now for the window clipping) then the next
operation will be the GC flush, not the XCopyArea.
To handle this right we now pass in the GC to be used to
queue_translation and ensure that it is flushed before calling
NextRequest().
Alexander Larsson [Thu, 13 Aug 2009 11:35:58 +0000 (13:35 +0200)]
Clarify comment
Alexander Larsson [Thu, 13 Aug 2009 11:32:17 +0000 (13:32 +0200)]
Invalidate old source in gdk_window_move_region
When we copy the region we need to also re-expose the areas of
the copied region that was not also in the destination.
And, we need to do this invalidation after the move, as the
move also moves any invalid area.
Alexander Larsson [Thu, 13 Aug 2009 11:13:47 +0000 (13:13 +0200)]
Modify window system exposes wrt outstanding moves
If there are outstanding moves in an area that intersects
the source of an outstanding move we need to move the invalid
area correspondingly, otherwise we will expose the wrong area
as the outstanding move copy will happen before we expose
the invalid area.
Alexander Larsson [Thu, 13 Aug 2009 11:07:13 +0000 (13:07 +0200)]
Check for GraphicsExpose too in expose_serial_predicate
GraphicsExpose cause invalidation too, so we need to look for such
events in addition to normal Expose events.
Alexander Larsson [Thu, 13 Aug 2009 11:04:28 +0000 (13:04 +0200)]
Don't un-invalidate area that will be immediately invalidated again.
When moving an area we move any invalid region in this area to the
new place, but there really is no need to remove the old invalid
area as it would just be invalidated again (being newly exposed).
Alexander Larsson [Thu, 13 Aug 2009 10:54:31 +0000 (12:54 +0200)]
Remove C++ comment
Alexander Shopov [Thu, 13 Aug 2009 09:05:10 +0000 (12:05 +0300)]
Updated Bulgarian translation
Daniel Nylander [Thu, 13 Aug 2009 08:31:54 +0000 (10:31 +0200)]
Updated Swedish translation
Daniel Nylander [Thu, 13 Aug 2009 08:29:36 +0000 (10:29 +0200)]
Updated Swedish translation
Daniel Nylander [Thu, 13 Aug 2009 08:08:20 +0000 (10:08 +0200)]
Updated Swedish translation
Alexander Shopov [Thu, 13 Aug 2009 04:33:11 +0000 (07:33 +0300)]
Updated Bulgarian translation